package com.xjy.service;

import com.xjy.pojo.Admin;
import com.xjy.pojo.Message;

import java.util.List;

public interface adminService {
    List<Admin> getAdmins();

    Admin getAdminByName(String name);
    //
    Admin getAdminById(int id);
    //添加
    int addAdmin(Admin admin);
    //修改
    int updateAdmin(Admin admin);
    //删除
    int deleteAdmin(int aid);
    //分页查找
    List<Admin> findAllAdminsByPage(Integer page, Integer size);

    int addMessage(Message message);

    int deleteNotice(String mid);

    List<Message> getNotices(int page, int size);

    int updateNotice(String mid, String msg);
}
